package com.tianxiabuyi.model.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.tianxiabuyi.model.base.TXBYObject;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 手机设备号<br>
 * @author yangh
 */
@Entity
@Table(name = "device_token")
public class DeviceToken extends TXBYObject {
	private String version;      // 手机系统版本
	@Column(name = "device_token")@JSONField(name = "device_token")
	private String token;        // 手机设备号
	private Integer uid;         // 用户uid
	private Integer client;      // 手机类型，安卓或苹果
	@Column(name = "mod_time")@JSONField(name = "mod_time")
	private Long mTime;          // 修改时间
	@Column(name = "app_type")@JSONField(name = "app_type")
	private String appType;      // 应用类型(院内院外科室区分)
	
	public DeviceToken() {
		super();
		this.mTime = System.currentTimeMillis();
	}

	public String getAppType() {
		return appType;
	}

	public void setAppType(String appType) {
		this.appType = appType;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public Integer getUid() {
		return uid;
	}

	public void setUid(Integer uid) {
		this.uid = uid;
	}

	public Integer getClient() {
		return client;
	}

	public void setClient(Integer client) {
		this.client = client;
	}

	public Long getmTime() {
		return mTime;
	}

	public void setmTime(Long mTime) {
		this.mTime = mTime;
	}
}